package demo1;

public class Animal {
    String name;

    public Animal() {
        shout();
    }

    public void shout() {

        System.out.println("动物发出吼叫");
    }
}
  /*  public  Dog shout(){
        System.out.println("动物发出吼声");
        return null;
    }*/
